﻿using System;
using System.Web;

namespace good1.Web.Controllers.Infrastructure.Cookies
{
    public interface ICookieContainer
    {
        bool Exists(string key);

        string GetValue(string key);
        T GetValue<T>(string key);

        void SetValue(string key, object value, DateTime expires, bool insideHttpPostEvent);
        void SetValue(string key, object value, DateTime expires);

        void AddValue(string key, object value, DateTime expires);//especially for auth cookie
        void AddCookie(HttpCookie cookie);
    }



    

    
}
